package com.archerdu.apply.service;

import java.util.List;

import com.archerdu.apply.dao.QuestionDAO;
import com.archerdu.apply.model.Question;
import com.archerdu.base.service.IBaseManager;

public interface QuestionManager extends IBaseManager<Question, Integer> {
    
    public void setQuestionDao(QuestionDAO advertiseDao);
    public QuestionDAO getQuestionDao();
    
    /**
     * 根据试卷查找试题
     * @param id
     * @return
     */
    public List<Question> findByExaminId(Integer id);
    
    /**
     * 判断答案
     * @param question 题目
     * @param options 选项
     * @return
     */
    public boolean checkOption(Question question, String[] options);
}
